as_text

pure function as_text(): text

Convert this JSON text value to text.

Note that this method is different to json.to_text(). This method retrieves this text-typed JSON value as Rell text, and throws an exception if this JSON value is not of text type. json.to_text() converts this entire JSON value to its text representation, regardless of what type of JSON value this is, and does not throw an exception.

Since

0.14.16

Throws

exception

if this JSON value is not text